{*<!-- {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} -->*}
<!-- tpl-Settings-RecordCollector-Configuration -->
{strip}
	<div class="o-breadcrumb widget_header row mb-2">
		<div class="col-md-12">
			{include file=\App\Layout::getTemplatePath('BreadCrumbs.tpl', $QUALIFIED_MODULE)}
			<div class="d-flex align-items-center ml-auto">
				<a href="https://doc.yetiforce.com/administrator-guides/integration/record-collectors/" target="_blank" class="btn btn-outline-info js-popover-tooltip" data-content="{App\Language::translate('BTM_GOTO_YETIFORCE_DOCUMENTATION')}" rel="noreferrer noopener" data-js="popover">
					<span class="mdi mdi-book-open-page-variant u-fs-lg"></span>
				</a>
			</div>
		</div>
	</div>
	<div class="main_content">
		<form class="js-validation-form">
			<div class="form-row m-0">
				<div class="col-12 form-row mb-2">
					<div class="js-config-table table-responsive" data-js="container">

						<table class="table table-bordered">
							<thead>
								<tr>
									<th scope="col">{\App\Language::translate('LBL_NAME', $QUALIFIED_MODULE)}</th>
									<th scope="col">{\App\Language::translate('LBL_DESCRIPTION', $QUALIFIED_MODULE)}</th>
									<th scope="col">{\App\Language::translate('LBL_MODULES', $QUALIFIED_MODULE)}</th>
									<th scope="col">{\App\Language::translate('LBL_TYPE', $QUALIFIED_MODULE)}</th>
									<th scope="col">{\App\Language::translate('LBL_DOC_URL', $QUALIFIED_MODULE)}</th>
									<th scope="col">{\App\Language::translate('LBL_FEATURED', $QUALIFIED_MODULE)}</th>
									<th scope="col">{\App\Language::translate('LBL_ACTIVE', $QUALIFIED_MODULE)}</th>
									<th scope="col">{\App\Language::translate('LBL_ACTIONS', $QUALIFIED_MODULE)}</th>
								</tr>
							</thead>
							<tbody>
								{foreach from=$COLLECTORS item=COLLECTOR}
									<tr class="{if !$COLLECTOR->isAvailable()}bg-white{/if}">
										<td>
											<span class="{$COLLECTOR->icon} u-fs-3x mr-2"></span>
											{\App\Language::translate($COLLECTOR->label, 'Other.RecordCollector')}
											{if \in_array($COLLECTOR->getName(), $PAID_RECORD_COLLECTOR)}<span class="yfi-premium color-red-600 js-popover-tooltip ml-2" title="{\App\Language::translate('LBL_PAID_FUNCTIONALITY', 'Settings::YetiForce')}"></span>{/if}
										</td>
										<td>
											{\App\Language::translate($COLLECTOR->description, 'Other.RecordCollector')}
										</td>
										<td>
											{foreach from=$COLLECTOR->allowedModules item=VALUE name=LIST}
												{\App\Language::translate($VALUE, $VALUE)}{if not $smarty.foreach.LIST.last}, {/if}
											{/foreach}
										</td>
										<td class="text-nowrap">
											{\App\Language::translate("LBL_TYPE_{$COLLECTOR->displayType}", $QUALIFIED_MODULE)}
										</td>
										<td class="text-break">
											<a href="{$COLLECTOR->docUrl}" rel="noreferrer noopener" target="_blank">{$COLLECTOR->docUrl}</a>
										</td>
										<td class="text-center">
											<input class="js-featured-change js-visibility {if !$COLLECTOR->active}d-none{/if}" name="featured" value="{$COLLECTOR->getName()}" type="checkbox" {if $COLLECTOR->featured}checked{/if}>
										</td>
										<td class="text-center">
											<input class="js-status-change" name="is_active" value="{$COLLECTOR->getName()}" type="checkbox" {if $COLLECTOR->active}checked{/if} {if !$COLLECTOR->active && !$COLLECTOR->isAvailable()} disabled="disabled" {/if}>
										</td>
										<td class="text-center">
											{if !empty($COLLECTOR->settingsFields)}
												<button class="btn btn-outline-secondary btn-sm js-show-config-modal js-popover-tooltip mr-1 js-visibility {if !$COLLECTOR->active}d-none{/if}" type="button" data-name="{$COLLECTOR->getName()}"
													data-content="{\App\Language::translate('LBL_CONFIG', $QUALIFIED_MODULE)}">
													<span class="fas fa-cog"></span>
												</button>
											{/if}
										</td>
									</tr>
								{/foreach}
							</tbody>
						</table>
					</div>
				</div>
		</form>
	</div>
{/strip}
<!-- /tpl-Settings-RecordCollector-Configuration -->
